<div class="view">
    <?php 
$width = $this->Width;
$height = $this->Height;
$htmlOptions = array();
if (!empty($width) && $width > 0)
    $htmlOptions['width'] = $width;
if (!empty($height) && $height > 0)
    $htmlOptions['height'] = $height;
echo CHtml::image($data->source, $data->alt, $htmlOptions);?>
</div>
<?php echo YII_DEBUG ? '<!-- '.__FILE__.' -->' : '';?>